package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceSuppliesnameMapper;
import com.ruoyi.service.domain.ServiceSuppliesname;
import com.ruoyi.service.service.IServiceSuppliesnameService;

/**
 * 耗材与别名Service业务层处理
 * 
 * @author ZDL
 * @date 2024-10-21
 */
@Service
public class ServiceSuppliesnameServiceImpl implements IServiceSuppliesnameService 
{
    @Autowired
    private ServiceSuppliesnameMapper serviceSuppliesnameMapper;

    /**
     * 查询耗材与别名
     * 
     * @param suppliesnameId 耗材与别名主键
     * @return 耗材与别名
     */
    @Override
    public ServiceSuppliesname selectServiceSuppliesnameBySuppliesnameId(Long suppliesnameId)
    {
        return serviceSuppliesnameMapper.selectServiceSuppliesnameBySuppliesnameId(suppliesnameId);
    }

    /**
     * 查询耗材与别名列表
     * 
     * @param serviceSuppliesname 耗材与别名
     * @return 耗材与别名
     */
    @Override
    public List<ServiceSuppliesname> selectServiceSuppliesnameList(ServiceSuppliesname serviceSuppliesname)
    {
        return serviceSuppliesnameMapper.selectServiceSuppliesnameList(serviceSuppliesname);
    }

    /**
     * 新增耗材与别名
     * 
     * @param serviceSuppliesname 耗材与别名
     * @return 结果
     */
    @Override
    public int insertServiceSuppliesname(ServiceSuppliesname serviceSuppliesname)
    {
        return serviceSuppliesnameMapper.insertServiceSuppliesname(serviceSuppliesname);
    }

    /**
     * 修改耗材与别名
     * 
     * @param serviceSuppliesname 耗材与别名
     * @return 结果
     */
    @Override
    public int updateServiceSuppliesname(ServiceSuppliesname serviceSuppliesname)
    {
        return serviceSuppliesnameMapper.updateServiceSuppliesname(serviceSuppliesname);
    }

    /**
     * 批量删除耗材与别名
     * 
     * @param suppliesnameIds 需要删除的耗材与别名主键
     * @return 结果
     */
    @Override
    public int deleteServiceSuppliesnameBySuppliesnameIds(Long[] suppliesnameIds)
    {
        return serviceSuppliesnameMapper.deleteServiceSuppliesnameBySuppliesnameIds(suppliesnameIds);
    }

    /**
     * 删除耗材与别名信息
     * 
     * @param suppliesnameId 耗材与别名主键
     * @return 结果
     */
    @Override
    public int deleteServiceSuppliesnameBySuppliesnameId(Long suppliesnameId)
    {
        return serviceSuppliesnameMapper.deleteServiceSuppliesnameBySuppliesnameId(suppliesnameId);
    }
}
